import { useDispatch, TypedUseSelectorHook, useSelector } from "react-redux"

import { appDispatch, rootState } from "./index"

export const useAppDispatch = () => useDispatch<appDispatch>()

export const useAppSelector: TypedUseSelectorHook<rootState> = useSelector